﻿using UnityEngine;

namespace WentStateMachine
{
    public class StateInfoForAnimator : IStateInfo
    {
        private AnimatorStateInfo info;
        public StateInfoForAnimator(AnimatorStateInfo info)
        {
            this.info = info;
        }

        public bool IsHash(int nameHash)
        {
            return info.fullPathHash == nameHash;
        }

        public bool IsName(string name)
        {
            return info.IsName(name);
        }
    }
}
